package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caocaog.market.entity.ShopBasic;
import com.caocaog.market.merchant.entity.MkMerchantBasic;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.SystemSite;
import org.jeecg.modules.system.entity.SysUserRole;
import org.jeecg.modules.system.entity.SysUserSite;
import org.jeecg.modules.system.entity.SysUserSiteArea;
import org.jeecg.modules.system.mapper.SysUserSiteMapper;
import org.jeecg.modules.system.service.ISysUserSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户分站 服务实现类
 * </p>
 *
 * @Author liguang
 * @since 2021-11-23
 */
@Service
public class SysUserSiteServiceImpl implements ISysUserSiteService {
    @Autowired
    private SysUserSiteMapper sysUserSiteMapper;
    @Override
    public SysUserSite findSiteForSysUser(String siteId) {

        return sysUserSiteMapper.findSiteForSysUser(siteId);
    }

    @Override
    public List<SysUserSiteArea> findSiteAreaBySiteId(String siteId) {

        return sysUserSiteMapper.findSiteAreaBySiteId(siteId);
    }

    @Override
    public SysUserSite findSiteForUserName(String username) {
        return sysUserSiteMapper.findSiteForUserName(username);
    }

    @Override
    public MkMerchantBasic findMerchantForMerchantId(String merchantId) {
        return sysUserSiteMapper.findMerchantForMerchantId(merchantId);
    }

    @Override
    public List<SysUserSiteArea> findSiteAreaForUserName(String username) {
        return sysUserSiteMapper.findSiteAreaForUserName(username);
    }

    @Override
    public List<SystemSite> findAllSite() {
        return sysUserSiteMapper.findAllSite();
    }

}
